//
//  AudioRecorderFileManager.h
//  AudioUnitDemo
//
//  Created by ilongge on 2021/9/2.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@interface AudioRecorderFileManager : NSObject
/**
 创建音频文件
 ExtAudioFileRef
 */
- (ExtAudioFileRef)createExtAudioFileWithAsbd:(AudioStreamBasicDescription)destinationFormat;
/**
 写入音频数据到文件
 */
- (void)writeData:(NSData*)data;
/**
 关闭文件
 */
- (NSString *)closeFile:(ExtAudioFileRef)audioFileRef;
@end


